import { _decorator, Component, Node, Label } from 'cc';
import { Global } from '../Global';
const { ccclass, property } = _decorator;

@ccclass('LabelBox')
export class LabelBox extends Component {

    @property(Label)
    label: Label = null

    start() {

    }

    update(deltaTime: number) {
        if (Global.fm) {
            this.label.string = `第 ${Global.fm.getFloor()} 层`
        }
    }
}

